package cn.stylefeng.guns.modular.tool.entity;

import com.baomidou.mybatisplus.annotation.TableName;

import lombok.Data;

import com.baomidou.mybatisplus.annotation.IdType;
import java.util.Date;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.FieldFill;
import com.baomidou.mybatisplus.annotation.TableField;
import java.io.Serializable;

/**
 * <p>
 * 补货记录表
 * </p>
 * @author zhucx
 * @since 2023-04-20
 */
@TableName("tool_work_task_detailed")
@Data
public class ToolWorkTaskDetailed implements Serializable {

    private static final long serialVersionUID = 1L;

    /**
     * 主键
     */
    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    /**
     * 作业id
     */
    @TableField("wave_id")
    private Long waveId;

    /**
     * 状态
     */
    @TableField("state")
    private String state;

    /**
     * 客户id
     */
    @TableField("customer_id")
    private Long customerId;

    /**
     * 客户名称
     */
    @TableField("customer_name")
    private String customerName;

    /**
     * 商品名
     */
    @TableField("goods_name")
    private String goodsName;

    /**
     * 商品编号
     */
    @TableField("goods_number")
    private String goodsNumber;

    /**
     * 商品id
     */
    @TableField("goods_id")
    private Long goodsId;

    /**
     * 补货数
     */
    @TableField("num")
    private String num;

    /**
     * 下架库位id
     */
    @TableField("sourcepositionId")
    private Long sourcepositionId;

    /**
     * 下架库位
     */
    @TableField("sourceposition_number")
    private String sourcepositionNumber;

    /**
     * 目的地库位id
     */
    @TableField("position_id")
    private Long positionId;

    /**
     * 目的地库位
     */
    @TableField("position_number")
    private String positionNumber;

    /**
     * v1
     */
    @TableField("v1")
    private String v1;

    /**
     * v2
     */
    @TableField("v2")
    private String v2;

    /**
     * 部门id
     */
    @TableField("dept_id")
    private Long deptId;

    /**
     * 交付客户id
     */
    @TableField("deliver_id")
    private Long deliverId;

    /**
     * 创建时间
     */
    @TableField(value = "create_time", fill = FieldFill.INSERT)
    private Date createTime;

    /**
     * 操作人员
     */
    @TableField("create_name")
    private String createName;

    @Override
    public String toString() {
        return "ToolWorkTaskDetailed{" +
        "id=" + id +
        ", waveId=" + waveId +
        ", state=" + state +
        ", customerId=" + customerId +
        ", customerName=" + customerName +
        ", goodsName=" + goodsName +
        ", goodsNumber=" + goodsNumber +
        ", goodsId=" + goodsId +
        ", num=" + num +
        ", sourcepositionId=" + sourcepositionId +
        ", sourcepositionNumber=" + sourcepositionNumber +
        ", positionId=" + positionId +
        ", positionNumber=" + positionNumber +
        ", v1=" + v1 +
        ", v2=" + v2 +
        ", createTime=" + createTime +
        ", createName=" + createName +
        "}";
    }
}
